package kr.co.boogui.helper;

import java.io.IOException;
import java.io.PrintWriter;
import java.net.URLDecoder;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import kr.co.boogui.dao.ReservationDAO;
import kr.co.boogui.model.MovieVO;


@WebServlet("/get_cine.bi")
public class GetICinema extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
	protected void doGet(HttpServletRequest req, HttpServletResponse res) 
			throws ServletException, IOException {
		res.setContentType("text/html; charset=UTF-8");
		req.setCharacterEncoding("UTF-8");
		PrintWriter out = res.getWriter();
		String cinename = URLDecoder.decode(req.getParameter("cinename"));		
		String html = "<div id='selcineinfo'>"
				+ "<h1>" + cinename + "</h1>"
				+ "</div>";
		if (cinename!=null){
			out.print(html);
		} else {
			out.print("");
		}
		
		out.close();
	}
}
